<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<%@ page import="com.qm.hibernate.Tpost"%>
<%@ page import="com.qm.hibernate.Tuser"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib prefix="s"
	uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>浏览帖子</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../Css/styles.css">

</head>

<body>
	<%@ include file="../Public/communityHeader.jsp"%>
	<%Tpost t = (Tpost)session.getAttribute("list3");
	String title = t.getTitle();
	String content = t.getContent();
	String[] commentFloor = {"沙发","板凳","地毯","地板","地下室","地基" , "地壳" ,"地幔","地核"};
	int count = 0;
		String str = t.getSection();
	String section[] = {"社区活动","灌水区"};
	int i ;
	if (str.equals("activity")) i = 0;
	else i = 1;
 	%>
	<a href="index">球迷小区</a>>
	<a href=<%=str%>><%=section[i]%></a>
	<span style="color:black">><%=title%></span>
	<br />
	</div>
	<div id="container">
		<p><%=content%></p>
		<h3 style="color:green">评论</h3>
		<s:iterator id="list" value="#session.list4">
			<% if (count < 9) {%>
			<%=commentFloor[count++]%>
			<%}else%><%="第" +(++count) + "楼:"%>
			<p>
				<span style="color:blue;font-family:'宋体'"><s:property
						value="content" />
						</span>	
			</p>
				
		</s:iterator>
		<br /> <span style="color:green">您也随便说两句?</span>
		<form action="commentAction">
			<textarea style="height:100" name="content"></textarea>
			<input type="submit" style="float:right" value="提交回复" />
		</form>
		
	</div>
	<div id="footer"></div>
</body>
</html>

